﻿using System.Configuration;

namespace BLL.Configuration.CDN
{
    /// <summary>
    /// CDN Section for web.config
    /// </summary>
    public class CdnContentSection : ConfigurationSection
    {
        /// <summary>
        /// Gets the URL.
        /// </summary>
        [ConfigurationProperty("url")]
        public CdnElementCollection Url
        {
            get
            {
                return (CdnElementCollection)this["url"] ?? new CdnElementCollection();
            }
        }

        /// <summary>
        /// Gets content delivery network configuration.
        /// </summary>
        public static CdnContentSection Current
        {
            get
            {
                return (CdnContentSection)ConfigurationManager.GetSection("cdn") ?? new CdnContentSection();
            }
        }
    }
}